<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改电影</title>
    <link rel="stylesheet" th:href="@{/public/lib/layui/css/layui.css}">
    <link rel="stylesheet" th:href="@{/news/add.css}">
    <script th:src="@{/public/lib/jquery/jquery-3.7.1.min.js}"></script>
    <script th:src="@{/public/lib/layui/layui.js}"></script>

    <!--thymeleaf语法-->
    <script th:inline="javascript">
        const error = /*[[${error}]]*/"";
        const stu = /*[[${stu}]]*/{};
    </script>

    <script th:src="@{/news/edit.js}"></script>
</head>
<body>
<div>
    <form id="user-form" action="">
        <div>
            <label id="stuIdT"  th:text="${'电影编号:'+stu?.newid}" ></label>
<!--            <div  id="stuId"  th:value="${stu?.newid}" ></div>-->
<!--            <label  id="stuId"  autocomplete="off"  th:text="${stu?.newid}"><label>-->
<!--            <input type="text" id="stuId" autocomplete="off" placeholder="请输入标题"  th:value="${stu?.newid}">-->
        </div>
        <div>
            <label for="phone">标题：</label>
            <input type="text" id="phone" autocomplete="off" placeholder="请输入标题"  th:value="${stu?.title}">
        </div>
        <div>
            <label for="name">导演：</label>
            <input type="text" id="name" autocomplete="off" placeholder="请输入导演"  th:value="${stu?.author}">
        </div>


        <div class="sex-wrapper">
            <label for="politics">电影类别：</label>
            <input type="radio" id="politics" name="sex" value="剧情" checked>
            <label for="politics">剧情</label>&nbsp;&nbsp;
            <input type="radio" id="economy" name="sex" value="爱情">
            <label for="economy">爱情</label>
            <input type="radio" id="technology" name="sex" value="科幻">
            <label for="technology">科幻</label>
            <input type="radio" id="health" name="sex" value="喜剧">
            <label for="health">喜剧</label>
            <input type="radio" id="sport" name="sex" value="动作">
            <label for="sport">动作</label>
        </div>

        <div>
            <label for="birthday">上映日期：</label>
            <input type="text" id="birthday" autocomplete="off"
                   placeholder="请输入上映日期，格式:2000-02-05" readonly th:value="${stu?.time}">
        </div>
        <div>
            <label for="actor">主演：</label>
            <input type="text" id="actor" autocomplete="off" placeholder="请输入主演" th:value="${stu?.actor}">
        </div>
    </form>
</div>
</body>
</html>